package com.ruoyi.wareManagement.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.wareManagement.mapper.InventoryQueryCheckedMapper;
import com.ruoyi.wareManagement.domain.InventoryQueryChecked;
import com.ruoyi.wareManagement.service.IInventoryQueryCheckedService;

/**
 * 待检库存查询Service业务层处理
 * 
 * @author admin
 * @date 2024-06-28
 */
@Service
public class InventoryQueryCheckedServiceImpl implements IInventoryQueryCheckedService 
{
    @Autowired
    private InventoryQueryCheckedMapper inventoryQueryCheckedMapper;

    /**
     * 查询待检库存查询
     * 
     * @param checkedId 待检库存查询主键
     * @return 待检库存查询
     */
    @Override
    public InventoryQueryChecked selectInventoryQueryCheckedByCheckedId(Long checkedId)
    {
        return inventoryQueryCheckedMapper.selectInventoryQueryCheckedByCheckedId(checkedId);
    }

    /**
     * 查询待检库存查询列表
     * 
     * @param inventoryQueryChecked 待检库存查询
     * @return 待检库存查询
     */
    @Override
    public List<InventoryQueryChecked> selectInventoryQueryCheckedList(InventoryQueryChecked inventoryQueryChecked)
    {
        return inventoryQueryCheckedMapper.selectInventoryQueryCheckedList(inventoryQueryChecked);
    }

    /**
     * 新增待检库存查询
     * 
     * @param inventoryQueryChecked 待检库存查询
     * @return 结果
     */
    @Override
    public int insertInventoryQueryChecked(InventoryQueryChecked inventoryQueryChecked)
    {
        return inventoryQueryCheckedMapper.insertInventoryQueryChecked(inventoryQueryChecked);
    }

    /**
     * 修改待检库存查询
     * 
     * @param inventoryQueryChecked 待检库存查询
     * @return 结果
     */
    @Override
    public int updateInventoryQueryChecked(InventoryQueryChecked inventoryQueryChecked)
    {
        return inventoryQueryCheckedMapper.updateInventoryQueryChecked(inventoryQueryChecked);
    }

    /**
     * 批量删除待检库存查询
     * 
     * @param checkedIds 需要删除的待检库存查询主键
     * @return 结果
     */
    @Override
    public int deleteInventoryQueryCheckedByCheckedIds(Long[] checkedIds)
    {
        return inventoryQueryCheckedMapper.deleteInventoryQueryCheckedByCheckedIds(checkedIds);
    }

    /**
     * 删除待检库存查询信息
     * 
     * @param checkedId 待检库存查询主键
     * @return 结果
     */
    @Override
    public int deleteInventoryQueryCheckedByCheckedId(Long checkedId)
    {
        return inventoryQueryCheckedMapper.deleteInventoryQueryCheckedByCheckedId(checkedId);
    }
}
